<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>DoWhile语句</title>
    <script>
        //do while 这种后测试循环语句最常用于循环体中的代码至少要执行一次的情况
        let i = 0;
        do {
            i += 2;
            console.log("i: " + i);
        } while (i < 10)
        alert(i);



    </script>
</head>
<body>
DoWhile语句
</body>
</html>